<template>
	<view class="container">
		<view class="ul">
			<view class="li" @click="handleNav" :data-nav="0">
				<image src="../../../static/images/taskInfo.png" mode=""></image>
				<text>任务通知</text>
			</view>
			<view class="li" @click="handleNav" :data-nav="1">
				<image src="../../../static/images/orderInfo.png" mode=""></image>
				<text>接单通知</text>
			</view>
		</view>
		<view class="systemInfo">
			<view class="title">
				系统消息
			</view>
			<view class="systemCon">
				<view class="item">
					<view class="text">
						你好，感谢你的反馈，我们后续会优化功能。目前你可以通过提供截图给公众号，要求复审。
					</view>
					<view class="time">
						2020/10/16 10:19
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {

		},
		data() {
			return {
			}
		},
		onReady() {},
		methods: {
			handleNav (e) {
				let nav = e.currentTarget.dataset.nav;
				switch (nav){
					case 0:
					uni.navigateTo({
						url: "/pages/center/message/taskNotice"
					})
						break;
						case 1:
						uni.navigateTo({
							url: "/pages/center/message/orderNotice"
						})
							break;
					default:
						break;
				}
			}
		},
	}
</script>
<style>
	page {
		background: #f9fafc;
	}
</style>
<style scoped lang="scss">
	.container {
		.ul {
			margin-bottom: 20rpx;
			padding: 0 28rpx;
			background: #fff;
			.li {
				padding: 28rpx 0;
				&:last-child {
					border: none;
				}
				image {
					width: 76rpx;
					height: 76rpx;
					border-radius: 50%;
					vertical-align: middle;
				}
				text {
					padding-left: 24rpx;
					font-size: 28rpx;
					color: #000000;
				}
				border-bottom: 1px solid #f8f8f8;
			}
		}
		.systemInfo {
			background: #fff;
			.title {
				padding-left: 32rpx;
				height: 106rpx;
				line-height: 106rpx;
				border-bottom: 1px solid #f8f8f8;
				font-size: 28rpx;
				font-weight: bold;
				color: #000;
			}
			.systemCon {
				padding: 12rpx 32rpx 0;
				.item {
					padding: 32rpx 0;
					border-bottom: 1px solid #f8f8f8;
					.text {
						margin-bottom: 32rpx;
						font-size: 26rpx;
						color: #333;
					}
					.time {
						font-size: 24rpx;
						color: #d0d0d0;
					}
				}
			}
		}
	}
</style>
